//
//  NewsItem.swift
//  SwiftUI+MVVM+Repository
//
//  Created by 高强 on 2024/9/18.
//

struct NewsBean: Codable, Identifiable {
    let id: Int
    let createTime: String
    let title: String
    let content: String
    
    // Equatable 的默认实现会自动生成，只要你的属性类型本身都是 Equatable 类型
    static func == (lhs: NewsBean, rhs: NewsBean) -> Bool {
        return lhs.id == rhs.id
    }
}

